/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-07-28 21:06:54
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-12 20:58:42
 */
import 'package:flutter/material.dart';
import 'components/welcome_time_widget.dart';
import 'components/welcome_video.dart';

class WelcomeScreen extends StatefulWidget {
  @override
  _WelcomeScreenState createState() => _WelcomeScreenState();
}

class _WelcomeScreenState extends State<WelcomeScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        width: double.infinity,
        height: double.infinity,
        child: Stack(
          children: [
            // 第一层 背景照片 或视频
            Positioned(
              left: 0,
              right: 0,
              bottom: 0,
              top: 0,
              child: WelcomeVideoWidget(),
            ),
            // 第二层 倒计时
            Positioned(
              child: WelcomeTimeWidget(),
              right: 22,
              bottom: 66,
            ),
          ],
        ),
      ),
    );
  }
}
